package com.test.encprytool.destool;

import com.test.encprytool.Des3Util;
import com.test.encprytool.EncryptTool;
import com.test.encprytool.KeyConstant;

/**
 * 新的云配解密工具在原位移加密的基础上再加上3des加密
 * Created by xxj on 2018/7/5.
 */

public class Deciphering3DesTool {

    public static void main(String args[]) {
        String rawData = EncryptTool.readFile(KeyConstant.CLOUD_FILE);
        rawData = Des3Util.decrypt(rawData, KeyConstant.DECRY_3DES_KEY);
        String result = EncryptTool.decryptOffsetByte(rawData);
        EncryptTool.writeFile(KeyConstant.LOCAL_FILE, result);
    }


    //haha

}
